export const formatDate = (date: Date, part?: 'date' | 'time'): string => {
  switch (part) {
    case 'date':
      return date.toLocaleDateString('ru-RU', { timeZone: 'Europe/Moscow' });
    case 'time':
      return date.toLocaleTimeString('ru-RU', { timeZone: 'Europe/Moscow' });
    default:
      return date.toLocaleString('ru-RU', { timeZone: 'Europe/Moscow' });
  }
};
